import request from '@/utils/request'

// 查询用户定位列表
export function listUserLocation(query) {
  return request({
    url: '/business/userLocation/list',
    method: 'get',
    params: query
  })
}

// 查询用户定位详细
export function getUserLocation(id) {
  return request({
    url: '/business/userLocation/' + id,
    method: 'get'
  })
}

// 新增用户定位
export function addUserLocation(data) {
  return request({
    url: '/business/userLocation',
    method: 'post',
    data: data
  })
}

// 修改用户定位
export function updateUserLocation(data) {
  return request({
    url: '/business/userLocation',
    method: 'put',
    data: data
  })
}

// 删除用户定位
export function delUserLocation(id) {
  return request({
    url: '/business/userLocation/' + id,
    method: 'delete'
  })
}

// 导出用户定位
export function exportUserLocation(query) {
  return request({
    url: '/business/userLocation/export',
    method: 'get',
    params: query
  })
}